﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderComplain.aspx.cs" Inherits="WebSite.admin.order.OrderComplain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form2" runat="server">


       <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="订单投诉列表"  ShowHeader="true" >
              <Items>

            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">

             <Items>
            
             <ext:Label ID="lblOrderCode"   runat="server" Text="&nbsp;&nbsp;订单号："></ext:Label>
              <ext:TextBox runat="server" ID="txtOrderCode"   MaxLength="100" Label="订单号" ></ext:TextBox>
                   <ext:Label ID="lblCompainType"   runat="server" Text="&nbsp;&nbsp;投诉类型："></ext:Label>
                <ext:DropDownList ID="ddlCompainType"  runat="server" Label="投诉类型">
         
          </ext:DropDownList>

               <ext:Label ID="lblProcessType"   runat="server" Text="&nbsp;&nbsp;处理状态："></ext:Label>
           <ext:DropDownList ID="ddlProcessType"  runat="server" Width="100px"  Text="处理状态" ShowLabel="true" Label="处理状态">
                        <ext:ListItem Text="未处理"  Value="0" Selected="true" />
                         <ext:ListItem Text="已处理"  Value="1"  />
           </ext:DropDownList>
                   <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                     OnClick="btnSearch_Click"></ext:Button>
                  </Items>
         </ext:Panel>

     </Items>
     
   </ext:SimpleForm>

         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="418px"  AllowPaging="true" SortColumn="ordercode" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="false"   AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="compainid" OnSort="Grid1_Sort" EnableRowNumber="True">

        <Columns>
        
                 <ext:BoundField Width="100px" ColumnID="ordercode" SortField="ordercode" DataField="ordercode" DataFormatString="{0}"
                HeaderText="订单号" />
            <ext:BoundField Width="100px" ColumnID="CompainName" SortField="CompainName" DataField="CompainName" DataFormatString="{0}"
                HeaderText="投诉类别" />
           <ext:BoundField Width="300px" ColumnID="Content" SortField="Content" DataField="Content" DataFormatString="{0}"
                HeaderText="投诉内容" />
           <ext:BoundField Width="140px" ColumnID="AddDate" SortField="AddDate"  DataField="AddDate" DataFormatString="{0}"
                HeaderText="投诉时间" />
      
            <ext:BoundField Width="200px" ColumnID="Process" SortField="Process" DataField="Process" DataFormatString="{0}"
                HeaderText="处理结果" />
                 <ext:BoundField Width="140px" ColumnID="ProcessDate" SortField="ProcessDate" DataField="ProcessDate" DataFormatString="{0}"
                HeaderText="处理时间" />
          
          <ext:TemplateField Width="60px" HeaderText="操作">
                <ItemTemplate>
                      <a href="#" onclick="openNewTab('OrderView','/admin/order/orders.aspx?oid=<%# Eval("orderid") %>&flag=2','订单查看','')"; title="查看">[查看]</a>
                </ItemTemplate>
            </ext:TemplateField>
            

        </Columns>
    </ext:Grid>

    </form>
</body>
</html>

